package com.gdut.wifidemo.strategy;

import com.gdut.wifidemo.common.RequestCallback;
import com.gdut.wifidemo.data.entity.Result;
import com.gdut.wifidemo.data.entity.Wifi;

import java.util.List;

public class StrategyContext {

    public enum Strategy {
        KNN
    }

    private IStrategy strategy;

    public StrategyContext(IStrategy strategy) {
        this.strategy = strategy;
    }

    public void calculate(List<Wifi> testData, RequestCallback<Result> callback) {
        strategy.calculate(testData, callback);
    }
}
